﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Evolution.Structure.Globe
{
    public class Resources
    {
        public Resource IndustryPoints { get; set; }
        public Resource MoneyPoints { get; set; }
        public Resource ResearchPoints { get; set; }
        public Resource CulturePoints { get; set; }
        public Resource FoodPoints { get; set; }


        public Resources()
        {
            IndustryPoints = new Resource(ValueType.Absolute, 0);
            MoneyPoints = new Resource(ValueType.Absolute, 0);
            ResearchPoints = new Resource(ValueType.Absolute, 0);
            CulturePoints = new Resource(ValueType.Absolute, 0);
            FoodPoints = new Resource(ValueType.Absolute, 0);

        }

        public static Resources operator +(Resources res1, Resources res2)
        {
            Resources temp = new Resources();
            temp.CulturePoints = res1.CulturePoints + res2.CulturePoints;
            temp.FoodPoints = res1.FoodPoints + res2.FoodPoints;
            temp.IndustryPoints = res1.IndustryPoints + res2.IndustryPoints;
            temp.MoneyPoints = res1.MoneyPoints + res2.MoneyPoints;
            temp.ResearchPoints = res1.ResearchPoints + res2.ResearchPoints;

            return temp;
        }
    }
}
